
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="contain_27" value="false" /> 
<c:forEach var="rol" items="${requestScope.userRolData.userRoles}"> 
	<c:if test="${rol.id.rolId eq 27}"> 
		<c:set var="contain_27" value="true" />
	</c:if> 
</c:forEach>
<input name="ds_person/contain_27" type="hidden" value="${contain_27}"/>
<input name="ds_person/flag" type="hidden" value="<x:out select="$xmlData/data/ds_person/flag" />"/>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">基本信息</td>
	</tr>
	<tr>
		<td width="120px" nowrap align="right">姓名：</td>
		<td width="300px" colspan='4'>
		    <input type="hidden" id="submit_psn" name="zh_persons/zh_person[0]@submit_psn" value="1" />
		    <input type="hidden" name="zh_persons/zh_person[0]@seq_no" value="1">
			<span name="zh_persons/zh_person[0]/basic_info/zh_name" class="dsPsn required" label="姓名"> 
			   <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn=1]/basic_info/zh_name" />&nbsp;
		    </span>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置实训导师">
				<cpt:personSelect key="personSelect"  addRole="27"  psnCode="${param.psnCode }" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置实训导师" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		</td>
		<td width="120px" nowrap align="right">性别：</td>
		<td width="300px" colspan='2'>
		    <span name="zh_persons/zh_person[0]/basic_info/gender_value" class="dsPsn required" label="性别">
		          <x:choose>
					<x:when select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value = 'M'">
					男
					</x:when>
					<x:when select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value = 'F'">
					女
					</x:when>
					<x:when select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value = '男'">
					男
					</x:when>
					<x:when select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/gender_value = '女'">
					女
					</x:when>
				 </x:choose>&nbsp;
		    </span>
		</td>
		<td rowspan="4" width="130px" align="center">
		   <div id="file8" style="text-align:center">
		       <input type="hidden" id="orgphotoInput" name="zh_persons/zh_person[0]/content/file_code8" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/content/file_code8" />" />
		       
		       <c:set var="file_code8"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/content/file_code8" /></c:set>
		       <c:choose>
		          <c:when test="${file_code8==''}">
		              <img id="orgphotoImg" src="/egrantres_nanshan/images/app/photo_01.jpg"  style="width:130px;height:159px" />
		          </c:when>
		          <c:otherwise>
		              <img id="orgphotoImg" name="content/file_code8"  style="width:130px;height:159px" 
		                 src="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/content/file_code8" />" />
		           </c:otherwise>
		       </c:choose>
		   </div>
		 </td>
	</tr>
	<tr>
	    <td nowrap align="right">民族：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/ethnicity_name" class="dsPsn required" label="民族"> 
		       <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/ethnicity_name" />
		    </span>
		    <!-- 
		     <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		    <input type="hidden" id="person_information" class="required" name="proposal/person_information" label='实训导师信息不完整' value="<x:out select="$xmlData/data/proposal/person_information" />" />
		    </security:authorize>
		     -->
		</td>
		<td nowrap align="right">出生年月：</td>
		<td colspan='2'>
		    <span name="zh_persons/zh_person[0]/basic_info/birthday" class="dsPsn required" label="出生年月"> 
		       <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/birthday" />
		    </span>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">婚姻状况：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/marriage_name" class="dsPsn required" label="婚姻状况"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/marriage_name" />
		    </span>
		</td>
	    <td nowrap align="right">户口所在地：</td>
		<td colspan='2'>
		    <span name="zh_persons/zh_person[0]/basic_info/account_location" class="dsPsn required" label="户口所在地">
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/account_location" />
			</span>
		</td>
	</tr>
	<tr>
		<td nowrap align="right">学历：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/educate_name" class="dsPsn required" label="学历"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/educate_name" />
		    </span>
		</td>
		<td nowrap align="right">学位：</td>
		<td colspan='2'>
		    <span name="zh_persons/zh_person[0]/basic_info/degree_name" class="dsPsn required" label="学位"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/degree_name" />
		    </span>
		</td>
	
	</tr>
	<tr>
		<td nowrap align="right">毕业院校：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/graduate_college" class="dsPsn "> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/graduate_college" />
		    </span>
		</td>
		<td nowrap align="right">专业：</td>
		<td colspan='3'>
		    <span name="zh_persons/zh_person[0]/basic_info/major" class="dsPsn required" label="专业"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/major" />
		    </span>
		</td>
	</tr>
	<tr>
		<td nowrap align="right">职称：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/prof_title_name" class="dsPsn required" label="职称"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/prof_title_name" />
		    </span>
		 </td>
		<td nowrap align="right">证件号码：</td>
		<td colspan='3'>
		  <span name="zh_persons/zh_person[0]/basic_info/card_code" class="dsPsn required" label="证件号码"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_code" />
		  </span>
		  （<span name="zh_persons/zh_person[0]/basic_info/card_type_name" class="dsPsn required"> 
		       <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/card_type_name" />
		    </span>）  
		 
		 
		</td>
	</tr>	
	<tr>
	    <td nowrap align="right">工作单位：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/org_name" class="dsPsn required" label="工作单位"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/org_name" />
		    </span>
		</td>
	    <td nowrap align="right">现在岗位：</td>
		<td colspan='3'>
            <span name="zh_persons/zh_person[0]/basic_info/current_job" class="dsPsn required" label="现任岗位"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/current_job" />
		    </span>
        </td>
	</tr>
	<tr>
		<td nowrap align="right">从事现岗位年限：</td>
		<td colspan='8'>
		    <span name="zh_persons/zh_person[0]/basic_info/work_year" class="dsPsn required" label="从事岗位年限"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/work_year" />
		    </span>年
		</td>
	</tr>
</table>
<br>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo1" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">联系方式</td>
	</tr>
	<tr>
	    <td width="120px" nowrap align="right">固定电话：</td>
		<td width="300px" colspan='4'>
		    <span name="zh_persons/zh_person[0]/contact/tel_work" class="dsPsn required" label="固定电话"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />
		    </span>
		</td>
	    <td width="120px" nowrap align="right">移动电话：</td>
		<td width="300px" colspan='3'>
            <span name="zh_persons/zh_person[0]/contact/mobile" class="dsPsn required" label="移动电话"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />
		    </span>
        </td>
	</tr>
	<tr>
	    <td nowrap align="right">电子邮箱：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/contact/email" class="dsPsn required" label="电子邮箱"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" />
		    </span>
		</td>
	    <td nowrap align="right">通讯地址：</td>
		<td colspan='3'>
            <span name="zh_persons/zh_person[0]/basic_info/address" class="dsPsn required" label="通讯地址"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/address" />
		    </span>
        </td>
	</tr>
	<tr>
	    <td nowrap align="right">中国银行开户账号<br>（仅限在深圳地区）:</td>
		<td colspan='8'>
            <span name="zh_persons/zh_person[0]/basic_info/bank_account" class="dsPsn required" label="银行账号"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/bank_account" />
		    </span>
        </td>
	</tr>
	<!--  
	<tr>
	    <td nowrap align="right">基本户开户银行：</td>
		<td colspan='4'>
		    <span name="zh_persons/zh_person[0]/basic_info/bank_orgname" class="dsPsn required"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/bank_orgname" />
		    </span>
		</td>
	    <td nowrap align="right">银行账号：</td>
		<td colspan='3'>
            <span name="zh_persons/zh_person[0]/basic_info/bank_account" class="dsPsn required"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/bank_account" />
		    </span>
        </td>
	</tr>
	
	<tr>
	    <td nowrap align="right">银行开户名称：</td>
		<td colspan='8'>
		    <span name="zh_persons/zh_person[0]/basic_info/bank_name" class="dsPsn required"> 
		        <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/bank_name" />
		    </span>
		</td>
	</tr>
	-->
</table>
<br>
 <div class="t_bar" align="left">教育背景</div>
      <table class="table01" width="100%"  border="0" cellpadding="0" id="tbleducation" cellspacing="1">
			<thead>
			<tr>
			     <th width='3%'>序号</th>
				<th width='20%'>毕业院校</th>
				<th width='6%'>学历</th>
				<th width='6%'>学位</th>
				<th width='13%'>开始时间</th>
				<th width='13%'>结束时间</th>
				<th width='12%'>专业</th>
				
			</tr>
			</thead>
			<tbody>
			<tr style="display: none" >
			    <td align="center">
				    <span name="educations|education[0]@seq_no" label="序号">[index]</span>
				</td>
				<td align="center">
				    <span name="educations|education[0]|cname_jy" class="dsPsn required" label="毕业院校"></span>
				</td>
				<td>
		            <span name="educations|education[0]|educate_name_jy" class="dsPsn required" label="学历"></span>
	        	
				</td>
				<td>
	        	 <span name="educations|education[0]|degree_name_jy" class="dsPsn required" label="学位"></span>
				</td>
				<td nowrap>
				     <span name="educations|education[0]|start_date_jy" class="dsPsn required" label="开始时间"></span>
				</td>
				<td nowrap>
				      <span name="educations|education[0]|end_date_jy" class="dsPsn required" label="结束时间"></span>
				</td>
				<td align="center">
	        	 <span name="educations|education[0]|major_jy" class="dsPsn required" label="专业"></span>
	        	</td>
			</tr>
			<c:set value="0" var="index" scope="page" />
		<x:choose>
			<x:when select="$xmlData/data/educations">
				<x:forEach select="$xmlData/data/educations/education" var="education">
				<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
				<td align="center" >
				    <span name="educations/education[${flag}${index}]@seq_no"  label="序号">${index+1}</span>
				</td>
				
				<td align="center">
				    <span name="educations/education[${flag}${index}]/cname_jy" class="dsPsn required" label="毕业院校"><x:out select="$education/cname_jy" /></span>
				</td>
				<td>
		            <span name="educations/education[${flag}${index}]/educate_name_jy" class="dsPsn required" label="学历"><x:out select="$education/educate_name_jy" /></span>
	        	
				</td>
				<td>
	        	 <span name="educations/education[${flag}${index}]/degree_name_jy" class="dsPsn required" label="学位"><x:out select="$education/degree_name_jy" /></span>
				</td>
				<td nowrap>
				     <span name="educations/education[${flag}${index}]/start_date_jy" class="dsPsn required" label="开始时间"><x:out select="$education/start_date_jy" /></span>
				</td>
				<td nowrap>
				      <span name="educations/education[${flag}${index}]/end_date_jy" class="dsPsn required" label="结束时间"><x:out select="$education/end_date_jy" /></span>
				</td>
				<td align="center">
	        	 <span name="educations/education[${flag}${index}]/major_jy" class="dsPsn required" label="专业"><x:out select="$education/major_jy" /></span>
	        	</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
				</x:forEach>
			</x:when>
			<x:otherwise>
			<x:forEach select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/educations/education" var="education">
			<c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
				<td align="center" >
				    <span name="educations/education[${flag}${index}]@seq_no"  label="序号">${index+1}</span>
				</td>
				
				<td align="center">
				    <span name="educations/education[${flag}${index}]/cname_jy" class="dsPsn required"><x:out select="$education/cname" /></span>
				</td>
				<td>
		            <span name="educations/education[${flag}${index}]/educate_name_jy" class="dsPsn required"><x:out select="$education/educate_name" /></span>
	        	
				</td>
				<td>
	        	 <span name="educations/education[${flag}${index}]/degree_name_jy" class="dsPsn required"><x:out select="$education/degree_name" /></span>
				</td>
				<td nowrap>
				     <span name="educations/education[${flag}${index}]/start_date_jy" class="dsPsn required"><x:out select="$education/start_date" /></span>
				</td>
				<td nowrap>
				      <span name="educations/education[${flag}${index}]/end_date_jy" class="dsPsn required"><x:out select="$education/end_date" /></span>
				</td>
				<td align="center">
	        	 <span name="educations/education[${flag}${index}]/major_jy" class="dsPsn required"><x:out select="$education/major" /></span>
	        	</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
				</x:forEach>
			</x:otherwise>
			</x:choose>
			<script type="text/javascript">
				showAllDateTag("tbleducation");
			</script>
			</tbody>
		</table>
		<div class="clear_h15" ></div>
		<div align="left" style="display: none">
			<input class="button_02"  id="jybj" type="button" value="添加" onclick="if(checkTabLimit('tbleducation',99,'教育背景最多只能填写99条')){addNewRow('tbleducation');showDateTag('tbleducation');}try{top.resizeFrame();}catch(e){};">
			<input class="button_02" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tbleducation','seleducation')">
			<input class="button_02" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tbleducation','seleducation')">
			<input class="button_02" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tbleducation','教育背景')">
		</div>
		
<br>
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo3" cellspacing="1" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
	<tr>
		<td colspan="9" class="t_bar">工作简历</td>
	</tr>
	<tr>
	    <td colspan='9'>
	     <pre><span name='zh_persons/zh_person[0]/basic_info/work_resume' class="dsPsn required" label="工作简历"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/work_resume" /></span></pre>
	     <input type="hidden" name="zh_persons/zh_person[0]/basic_info/work_resume_hidden" value="">
	    </td>
	  
	</tr>
</table>
<br>
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo4" cellspacing="1" style="table-layout: fixed; word-break: break-all; word-wrap: break-word">
	<tr>
		<td colspan="9" class="t_bar">专业经验和成果简介</td>
	</tr>
	<tr>
	    <td colspan='9'>
	    <pre><span name='zh_persons/zh_person[0]/basic_info/pro_exp' class="dsPsn required" label="专业经验和成果简介"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/pro_exp" /></span></pre>
	    <input type="hidden" name="zh_persons/zh_person[0]/basic_info/pro_exp_hidden" value="">
	    </td>
	</tr>
</table>
<br>
<script type="text/javascript">
	$(function() {
		$("#orgInfo tr:even").addClass("li_1");
		$("#orgInfo tr:odd").addClass("li_2");
		$("#orgInfo2 tr:even").addClass("li_1");
		$("#orgInfo2 tr:odd").addClass("li_2");
		$("#orgInfo3 tr:even").addClass("li_1");
		$("#orgInfo3 tr:odd").addClass("li_2");
		$("#orgInfo4 tr:even").addClass("li_1");
		$("#orgInfo4 tr:odd").addClass("li_2");
		
		if($("input[name$='contain_27']").val()=='false'){
			if($("input[name$='flag']").val()!='1'){
				cleardsData();
			}
		}
	});
	
	function cleardsData(){
		$(".dsPsn").text("");
	}
	//选择项目负责人回调
	function selectPsnCall(data) {
		// scmSuccess("请完善实训导师的个人信息后再填写申报书");
		$.ajax({
			url : "${ctx}/orgmanage/verifyorg/judge_person_information",
			type : "post",
			data : {
				'personId' : data.person.psnCode
			},
			dataType : "text",
			async : false,
			success : function(data) {
				if(data=='error' || data=='other'){
					scmError("你选择的实训导师个人信息不完整，请填写完整后在选择！");
					return false;
				}else if(data=='succee'){
				//	$("#person_information").val("OK");
				}
			},
			error : function(data) {
				scmError("选择错误！！！");
			}
		});
		// $(parent.document).find("input[name$='psn_code']").val(data.person.psnCode);
		$("input[name$='psn_code']").val(data.person.psnCode);
		$("span[name$='basic_info\/zh_name']").text(data.person.zhName);
		$("#sxds_name").text(data.person.zhName);
		if (data.personExtend.basic_info.gender_value=='F') {
			$("span[name$='basic_info\/gender_value']").text("女");
		} else if(data.personExtend.basic_info.gender_value=='M'){ 
			$("span[name$='basic_info\/gender_value']").text("男");
		}
		if(typeof(data.personExtend.basic_info.ethnicity_name)=="undefined"){
			$("span[name$='ethnicity_name']").text('');
		}else{
		$("span[name$='ethnicity_name']").text(data.personExtend.basic_info.ethnicity_name);
		}
		if(typeof(data.personExtend.basic_info.birthday)=="undefined"){
			$("span[name$='birthday']").text('');
		}else{
		$("span[name$='birthday']").text(data.personExtend.basic_info.birthday);
		}
		if(typeof(data.personExtend.basic_info.marriage_name)=="undefined"){
			$("span[name$='marriage_name']").text('');
		}else{
			$("span[name$='marriage_name']").text(data.personExtend.basic_info.marriage_name);
		}
		if(typeof(data.personExtend.basic_info.account_location)=="undefined"){
			$("span[name$='account_location']").text('');
		}else{
			$("span[name$='account_location']").text(data.personExtend.basic_info.account_location);
		}
		if(typeof(data.personExtend.basic_info.educate_name)=="undefined"){
			$("span[name$='educate_name']").text('');
		}else{
			$("span[name$='educate_name']").text(data.personExtend.basic_info.educate_name);
		}
		if(typeof(data.personExtend.basic_info.degree_name)=="undefined"){
			$("span[name$='degree_name']").text('');
		}else{
			$("span[name$='degree_name']").text(data.personExtend.basic_info.degree_name);
		}
		if(typeof(data.personExtend.basic_info.graduate_college)=="undefined"){
			$("span[name$='graduate_college']").text('');
		}else{
			$("span[name$='graduate_college']").text(data.personExtend.basic_info.graduate_college);
		}
		if(typeof(data.personExtend.basic_info.prof_title_name)=="undefined"){
			$("span[name$='prof_title_name']").text('');
		}else{
			$("span[name$='prof_title_name']").text(data.personExtend.basic_info.prof_title_name);
		}
		if(typeof(data.personExtend.basic_info.org_name)=="undefined"){
			$("span[name$='org_name']").text('');
		}else{
			$("span[name$='org_name']").text(data.personExtend.basic_info.org_name);
		}
		if(typeof(data.personExtend.basic_info.current_job)=="undefined"){
			$("span[name$='current_job']").text('');
		}else{
			$("span[name$='current_job']").text(data.personExtend.basic_info.current_job);
		}
		if(typeof(data.personExtend.basic_info.work_year)=="undefined"){
			$("span[name$='work_year']").text('');
		}else{
			$("span[name$='work_year']").text(data.personExtend.basic_info.work_year);
		}
		if(typeof(data.personExtend.contact.major)=="undefined"){
			$("span[name$='major']").text('');
		}else{
			$("span[name$='major']").text(data.personExtend.contact.major);
		}
		if(typeof(data.personExtend.contact.tel_work)=="undefined"){
			$("span[name$='tel_work']").text('');
		}else{
			$("span[name$='tel_work']").text(data.personExtend.contact.tel_work);
		}
		if(typeof(data.personExtend.contact.mobile)=="undefined"){
			$("span[name$='mobile']").text('');
		}else{
			$("span[name$='mobile']").text(data.personExtend.contact.mobile);
		}
		if(typeof(data.personExtend.contact.email)=="undefined"){
			$("span[name$='email']").text('');
		}else{
			$("span[name$='email']").text(data.personExtend.contact.email);
		}
		if(typeof(data.personExtend.basic_info.address)=="undefined"){
			$("span[name$='basic_info\/address']").text('');
		}else{
			$("span[name$='basic_info\/address']").text(data.personExtend.basic_info.address);
		}
		/**
		if(typeof(data.personExtend.basic_info.bank_orgname)=="undefined"){
			$("span[name$='bank_orgname']").text('');
		}else{
			$("span[name$='bank_orgname']").text(data.personExtend.basic_info.bank_orgname);
		}
		if(typeof(data.personExtend.basic_info.bank_name)=="undefined"){
			$("span[name$='bank_name']").text('');
		}else{
			$("span[name$='bank_name']").text(data.personExtend.basic_info.bank_name);
		}
		*/
		if(typeof(data.personExtend.basic_info.bank_account)=="undefined"){
			$("span[name$='bank_account']").text('');
		}else{
			$("span[name$='bank_account']").text(data.personExtend.basic_info.bank_account);
		}
		
		if(typeof(data.personExtend.basic_info.edu_background)=="undefined"){
			$("textarea[name$='edu_background']").text('');
		}else{
			$("textarea[name$='edu_background']").text(data.personExtend.basic_info.edu_background);
		}
		if(typeof(data.personExtend.basic_info.work_resume)=="undefined"){
			$("span[name$='work_resume']").text('');
		}else{
			$("span[name$='work_resume']").text(data.personExtend.basic_info.work_resume);
		}
		if(typeof(data.personExtend.basic_info.pro_exp)=="undefined"){
			$("span[name$='pro_exp']").text('');
		}else{
			$("span[name$='pro_exp']").text(data.personExtend.basic_info.pro_exp);
		}
		if(typeof(data.personExtend.basic_info.card_code)=="undefined"){
			$("span[name$='card_code']").text('');
		}else{
			$("span[name$='card_code']").text(data.personExtend.basic_info.card_code);
		}
		if(typeof(data.personExtend.basic_info.card_type_name)=="undefined"){
			$("span[name$='card_type_name']").text('');
		}else{
			$("span[name$='card_type_name']").text(data.personExtend.basic_info.card_type_name);
		}
	    if(typeof(data.personExtend.content)=="undefined"){
	    	$("input[name$='file_code8']").val('');
			$("#orgphotoImg").attr("src","/egrantres_nanshan/images/app/photo_01.jpg");
	    }else{
			if(typeof(data.personExtend.content.file_code8)=="undefined"){
				$("input[name$='file_code8']").val('');
				$("#orgphotoImg").attr("src","/egrantres_nanshan/images/app/photo_01.jpg");
			}else{
				$("input[name$='file_code8']").val(data.personExtend.content.file_code8);
				$("#orgphotoImg").attr("src",ctx+'/file/ajax-filedownload?fileCode='+data.personExtend.content.file_code8);
			}
	    }
		if(typeof(data.personExtend.educations)=="undefined"){
			$("#tbleducation tr:gt(1)").remove();
		}else{
		   var obj = data.personExtend.educations.education;
		   $("#tbleducation tr:gt(1)").remove();
		
		   if(obj.length==null){
			     $("#jybj").click();
				 var edu = obj;
				 $("span[name$='education[00]/@seq_no']").text(edu.seq_no);
				 $("span[name$='education[00]/cname_jy']").text(edu.cname);
				 $("span[name$='education[00]/educate_name_jy']").text(edu.educate_name);
				 $("span[name$='education[00]/degree_name_jy']").text(edu.degree_name);
				 $("span[name$='education[00]/start_date_jy']").text(edu.start_date);
				 $("span[name$='education[00]/end_date_jy']").text(edu.end_date);
				 $("span[name$='education[00]/major_jy']").text(edu.major);
		   }else{
			  for(var i =0 ; i < obj.length ; i++){
				 $("#jybj").click();
				 var edu = obj[i];
				 $("span[name$='education[0"+i+"]/@seq_no']").text(edu.seq_no);
				 $("span[name$='education[0"+i+"]/cname_jy']").text(edu.cname);
				 $("span[name$='education[0"+i+"]/educate_name_jy']").text(edu.educate_name);
				 $("span[name$='education[0"+i+"]/degree_name_jy']").text(edu.degree_name);
				 $("span[name$='education[0"+i+"]/start_date_jy']").text(edu.start_date);
				 $("span[name$='education[0"+i+"]/end_date_jy']").text(edu.end_date);
				 $("span[name$='education[0"+i+"]/major_jy']").text(edu.major);
			  }
		   }
		}
		
		$("input[name$='flag']").val(1);
		tb_remove2();
		
		$("span").each(function(){
			var val=$(this).text();
			//alert(val.indexOf(" ")+"=="+val.lastIndexOf(" "));
			val = val.replace(/&/gi,"&amp;").replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/\n/gi,"<br>").replace(/\s/gi,"&nbsp;").replace(/"/gi,"&quot;");
			//alert("input[nam*="+$(this).attr('name')+"_hidden]");
		
			$("input[name='"+$(this).attr('name')+"_hidden']").val(val);
				
			//$(this).html(val);
		});
	}
</script>
<script type="text/javascript">
$("span").each(function(){
	var val=$(this).text();
	//alert(val.indexOf(" ")+"=="+val.lastIndexOf(" "));
	val = val.replace(/&/gi,"&amp;").replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/\n/gi,"<br>").replace(/\s/gi,"&nbsp;").replace(/"/gi,"&quot;");
	//alert("input[nam*="+$(this).attr('name')+"_hidden]");

	$("input[name='"+$(this).attr('name')+"_hidden']").val(val);
		
	//$(this).html(val);
});
</script>